package com.ivanceras.server.util;

import java.io.File;

public class CleanUp {

	public static void doCleanUp(String directoryName){
		File directory = new File(directoryName);

		File[] files = directory.listFiles();
		for (File file : files)
		{
		   if (!file.delete())
		   {
		       System.out.println("Failed to delete "+file);
		   }
		}
	}
	
	public static void main(String[] args){
		doCleanUp(Configuration.daodirectory);
		doCleanUp(Configuration.mapperdirectory);
		doCleanUp(Configuration.bodirectory);
		doCleanUp(Configuration.generatedWindowDirectory);
	}
}
